package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.User;
import com.fenxiangtech.mall.model.qc.UserQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface UserDAO{

    int insertUser(User user);

    int updateUser(User user);

    List<User> listUser(UserQC user);

    Long countUser(UserQC user);

    int insertBatch(@Param("list") List<User> users);

    int deleteUserById(Long id);

}